<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$Think.lang.title}</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta name="keywords" content="PHP,android,js,web,前段,开发,mrasong,domain,whois,域名"/>
<meta name="description" content="{$Think.lang.title}" />
<link rel="stylesheet" type="text/css" href="__IMG__/style.css" />
</head>
<body>
<div class="wrap">
	<div class="header">
		<include file="Public:menu" />
		<h2 class="title"><a href="{:U('Whois/index')}">{$Think.lang.title}</a>
		<span>{$Think.lang.domain|strtoupper}</span></h2>
	</div>
	<p>
		<input type="text" name="domain" id="domain" value="{$Think.lang.domain}" onblur="this.style.color='#BBBBBB';if(this.value==''){ this.value='{$Think.lang.domain}' }" onfocus="this.style.color='#FF0000';if(this.value=='{$Think.lang.domain}'){this.value=''}" onkeypress="if(event.keyCode==13){doQuery();}"/>
		<input type="button" id="submit" value="{$Think.lang.submit}" onclick="doQuery()" /> <span id="tips"></span>
	</p>
	<div class="content">
		{$Think.lang.content}
	</div>
	<include file="Public:footer" />
</div>
<script type="text/javascript">
function doQuery(){
	document.getElementById('tips').innerHTML = "{$Think.lang.loading}";
	document.getElementById('submit').setAttribute("disabled", "disabled");
	domain = document.getElementById('domain').value;
	if( domain=="" ){
		document.getElementById('tips').innerHTML = "{$Think.lang.tips}";
		document.getElementById('submit').removeAttribute("disabled");
		setTimeout(function(){document.getElementById('tips').innerHTML = ""; },3000);
		return false;
	}
	queryPage = '{:U("Whois/example.com")}' ;
	location.href = queryPage.replace('example.com', domain);
}
</script>
</body>
</html>